﻿using System.Linq.Expressions;

namespace ExpressionLinq
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //测试where条件
            var old = new TestData
            {
                Name = "Test",
                Age = 5,
                AddTime = DateTime.Now,
                Value = "dfdfd"
            };
            var temp = 10;
            Expression<Func<TestData, bool>> e1 = data => data.Age == 10 || data.Name == "111";
            var where = new WhereExpressionVisitor();
            where.Visit(e1);
            var sql = where.ToSql();
        }
    }
}